﻿namespace WMS6.Web.BillingServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, GeneratedCode("System.Runtime.Serialization", "3.0.0.0"), DataContract(Name="StatementInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough]
    public class StatementInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string AccessorialField;
        [OptionalField]
        private string CreatedByField;
        [OptionalField]
        private DateTime CreatedDateField;
        [OptionalField]
        private DateTime EndTimeField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string InBoundField;
        [OptionalField]
        private string InventoryField;
        [OptionalField]
        private string OutBoundField;
        [OptionalField]
        private string OwnerIDField;
        [OptionalField]
        private DateTime PaymentDateField;
        [OptionalField]
        private string RemarkField;
        [OptionalField]
        private int RowIDField;
        [OptionalField]
        private DateTime StartTimeField;
        [OptionalField]
        private DateTime StatementDateField;
        [OptionalField]
        private List<StatementDetailInfo> StatementDetailInfosField;
        [OptionalField]
        private string StatementIDField;
        [OptionalField]
        private string StatusField;
        [OptionalField]
        private string UpdatedByField;
        [OptionalField]
        private DateTime UpdatedDateField;
        [OptionalField]
        private string WhIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string Accessorial
        {
            get
            {
                return this.AccessorialField;
            }
            set
            {
                if (!object.ReferenceEquals(this.AccessorialField, value))
                {
                    this.AccessorialField = value;
                    this.RaisePropertyChanged("Accessorial");
                }
            }
        }

        [DataMember]
        public string CreatedBy
        {
            get
            {
                return this.CreatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CreatedByField, value))
                {
                    this.CreatedByField = value;
                    this.RaisePropertyChanged("CreatedBy");
                }
            }
        }

        [DataMember]
        public DateTime CreatedDate
        {
            get
            {
                return this.CreatedDateField;
            }
            set
            {
                if (!this.CreatedDateField.Equals(value))
                {
                    this.CreatedDateField = value;
                    this.RaisePropertyChanged("CreatedDate");
                }
            }
        }

        [DataMember]
        public DateTime EndTime
        {
            get
            {
                return this.EndTimeField;
            }
            set
            {
                if (!this.EndTimeField.Equals(value))
                {
                    this.EndTimeField = value;
                    this.RaisePropertyChanged("EndTime");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string InBound
        {
            get
            {
                return this.InBoundField;
            }
            set
            {
                if (!object.ReferenceEquals(this.InBoundField, value))
                {
                    this.InBoundField = value;
                    this.RaisePropertyChanged("InBound");
                }
            }
        }

        [DataMember]
        public string Inventory
        {
            get
            {
                return this.InventoryField;
            }
            set
            {
                if (!object.ReferenceEquals(this.InventoryField, value))
                {
                    this.InventoryField = value;
                    this.RaisePropertyChanged("Inventory");
                }
            }
        }

        [DataMember]
        public string OutBound
        {
            get
            {
                return this.OutBoundField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OutBoundField, value))
                {
                    this.OutBoundField = value;
                    this.RaisePropertyChanged("OutBound");
                }
            }
        }

        [DataMember]
        public string OwnerID
        {
            get
            {
                return this.OwnerIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.OwnerIDField, value))
                {
                    this.OwnerIDField = value;
                    this.RaisePropertyChanged("OwnerID");
                }
            }
        }

        [DataMember]
        public DateTime PaymentDate
        {
            get
            {
                return this.PaymentDateField;
            }
            set
            {
                if (!this.PaymentDateField.Equals(value))
                {
                    this.PaymentDateField = value;
                    this.RaisePropertyChanged("PaymentDate");
                }
            }
        }

        [DataMember]
        public string Remark
        {
            get
            {
                return this.RemarkField;
            }
            set
            {
                if (!object.ReferenceEquals(this.RemarkField, value))
                {
                    this.RemarkField = value;
                    this.RaisePropertyChanged("Remark");
                }
            }
        }

        [DataMember]
        public int RowID
        {
            get
            {
                return this.RowIDField;
            }
            set
            {
                if (!this.RowIDField.Equals(value))
                {
                    this.RowIDField = value;
                    this.RaisePropertyChanged("RowID");
                }
            }
        }

        [DataMember]
        public DateTime StartTime
        {
            get
            {
                return this.StartTimeField;
            }
            set
            {
                if (!this.StartTimeField.Equals(value))
                {
                    this.StartTimeField = value;
                    this.RaisePropertyChanged("StartTime");
                }
            }
        }

        [DataMember]
        public DateTime StatementDate
        {
            get
            {
                return this.StatementDateField;
            }
            set
            {
                if (!this.StatementDateField.Equals(value))
                {
                    this.StatementDateField = value;
                    this.RaisePropertyChanged("StatementDate");
                }
            }
        }

        [DataMember]
        public List<StatementDetailInfo> StatementDetailInfos
        {
            get
            {
                return this.StatementDetailInfosField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatementDetailInfosField, value))
                {
                    this.StatementDetailInfosField = value;
                    this.RaisePropertyChanged("StatementDetailInfos");
                }
            }
        }

        [DataMember]
        public string StatementID
        {
            get
            {
                return this.StatementIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatementIDField, value))
                {
                    this.StatementIDField = value;
                    this.RaisePropertyChanged("StatementID");
                }
            }
        }

        [DataMember]
        public string Status
        {
            get
            {
                return this.StatusField;
            }
            set
            {
                if (!object.ReferenceEquals(this.StatusField, value))
                {
                    this.StatusField = value;
                    this.RaisePropertyChanged("Status");
                }
            }
        }

        [DataMember]
        public string UpdatedBy
        {
            get
            {
                return this.UpdatedByField;
            }
            set
            {
                if (!object.ReferenceEquals(this.UpdatedByField, value))
                {
                    this.UpdatedByField = value;
                    this.RaisePropertyChanged("UpdatedBy");
                }
            }
        }

        [DataMember]
        public DateTime UpdatedDate
        {
            get
            {
                return this.UpdatedDateField;
            }
            set
            {
                if (!this.UpdatedDateField.Equals(value))
                {
                    this.UpdatedDateField = value;
                    this.RaisePropertyChanged("UpdatedDate");
                }
            }
        }

        [DataMember]
        public string WhID
        {
            get
            {
                return this.WhIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.WhIDField, value))
                {
                    this.WhIDField = value;
                    this.RaisePropertyChanged("WhID");
                }
            }
        }
    }
}

